package com.duing.config.bean;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class RankBean implements Comparable<RankBean> {
    private String id;
    private int num;

    @Override
    public int compareTo(RankBean o) {
        return o.getNum() - this.num;
    }
}
